C code for PEGetPrintOptions and PESetPrintOptions

Print options can be examined and changed using PEGetPrintOptions and PESetPrintOptions. The following code demonstrates how to use these functions:

PEGetPrintOptions

struct PEPrintOptions printOptions;
    // Initialize size of structure
printOptions.StructSize = sizeof(PEPrintOptions);
if (!PEGetPrintOptions(Job, &printOptions)){
    // Handle error
}

PESetPrintOptions

struct PEPrintOptions printOptions;
    // Initialize structure
printOptions.StructSize = sizeof(PEPrintOptions);
printOptions.startPageN = 1;    
    // Start printing at page 1
printOptions.stopPageN = 10;    
    // Stop printing after page 10
printOptions.nReportCopies = 2;
    // Print 2 copies of the report
printOptions.collation = PE_COLLATED;
    // Collate the copies
if (!PESetPrintOptions(Job, &printOptions)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com